﻿

namespace DeviceManage.PLC
{
    public interface IPLCHelper
    {
        bool LinkSucceed { get; }

        void Link();

        object Read(string address);

        T Read<T>(string address);

        void WriteType<T>(string address, T value);

        void Write(string address, object value);

        int ReadClass(object obj, int db, int startAddr);

        event ErrorHandler OnErrorHandler;
    }
}
